/*
 * ListEl.h
 *
 *  Created on: Jun 27, 2011
 *      Author: apo
 */

#ifndef LISTEL_H_
#define LISTEL_H_
#include <iostream>

using namespace std;

template <class type>
class ListEl {
private:

	type content;

public:
	ListEl* next;//dreist ich weiß


	ListEl(type content) : content(content) {
		cout<<" neues element angelegt "<<endl;
		//this->content = content;
		this->next = 0;
	}

	void append(ListEl* toAppend){
		this->next = toAppend;
	};

	type& getContent(){
		return content;
	}

	virtual ~ListEl(){
		//malschaunwaskommt
	};
};

#endif /* LISTEL_H_ */
